class Article < ApplicationRecord
  has_many :comments, dependent: :destroy
  belongs_to :user
  
  validates :title, presence: true
  validates :title, length: {maximum: 200}
  validates :content, presence: true
end
